function initState() {
  return {
    locale: 'zh-CN', //当前语言
  };
}

export default {
  namespace: 'global',
  state: { ...initState() },
  effects: {},
  reducers: {
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState() };
    },
  },
};
